package cn.tianya.irock.data.idal;


import java.util.List;

import cn.tianya.irock.data.model.Role;
import cn.tianya.irock.enums.DataProviderAction;

public interface IRoleDataProvider {
	
	List<Role> getRoles(int userId);
	Role getRole(int roleId);
	void createUpdateDeleteRole(Role role, DataProviderAction action);
	void addUsersToRoles(List<Integer> userIds, List<Integer> roleIds);
	void removeUsersFromRoles(List<Integer> userIds, List<Integer> roleIds);
}
